<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  </head>
  
  <body>
	<c:if test="${user == null}">${err}</c:if>
	<c:if test="${user != null}">
    <form action="test/user/update">
		<input name="id" value="${user.id}" type="hidden">
		<input name="name" value="${user.name}">
		<input name="age" value="${user.age}">
		<input type="submit" value="update">
	</form>
	</c:if>
  </body>
</html>
